﻿
using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace HiSport.Core.Entity.HiSportEntity.Bas
{
    /// <summary>
    /// 运动项目类型
    /// 系统维护
    /// </summary>
    [SugarTable(null, "运动项目")]
    public class BasSportsEventsType : EntityBaseId, IDeletedFilter
    {

        /// <summary>
        /// 运动类型
        /// </summary>
        [SugarColumn(ColumnDescription = "运动类型",DefaultValue ="",Length =50,IsNullable =false)]
        [StringLength(50)]
        [Required]
        [DefaultValue("")]
        public string SportsEventsName { get; set; }


        /// <summary>
        /// 运动类型-值
        /// </summary>
        [SugarColumn(ColumnDescription = "运动类型值编码", DefaultValue = "", Length = 50, IsNullable = false)]
        [StringLength(50)]
        [Required]
        [DefaultValue("")]
        public string SportsEventsCode { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [SugarColumn(ColumnDescription = "图标", DefaultValue = "", Length = 200, IsNullable = false)]
        [StringLength(200)]       
        [DefaultValue("")]
        public string Icon { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnDescription = "排序", DefaultValue = "0", IsNullable = false)]      
        [DefaultValue(0)]
        public int Seq { get; set; }

        /// <summary>
        /// 状态 （1启用；2 停用；）
        /// </summary>
        [SugarColumn(ColumnDescription = "状态 （1启用；2 停用；）", DefaultValue = "1", IsNullable = false)]
        [Required]
        [DefaultValue(1)]
        public short Status { get; set; }


        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnDescription = "是否删除", DefaultValue = "0", IsNullable = false)]
        [Required]
        [DefaultValue(false)]
        public bool IsDelete { get; set; }

    }


}